<?php


namespace Admin\Model;
use Think\Model;
use Admin\Model\AuthGroupModel;


class  AreaModel extends Model{

    public function getArea($id = null){
        $map['parentid'] = 0;
        if($id>0){
            $map['parentid'] = $id;
        }
        return $this->where($map)->select();
    }

}